<?php
/**
 *  WB_CacheManager class unit tests
 *
 *  @author Jean-Lou Dupont
 *  @version @@package-version@@
 */

require_once 'PHPUnit/Framework.php';
require_once 'web-bloks/ObjFactory/ObjFactory.php';
require_once 'web-bloks/CacheManager/CacheManager.php';
require_once 'UnitTestClass.php';

class UnitTest extends PHPUnit_Framework_TestCase
{
	/**
	 * Destroys the singleton before each test.
	 */
	public function setup()
	{
	}
	
	public function testSingleton1()
	{
		$result = true;
		try
		{
			$obj = WB_ObjFactory::factory( "TestClass" );	
		}
		catch( Exception $e )
		{
			$result = false;			
		}
		
        $this->assertEquals( $result, true );		
	}
	
	public function testFake()
	{
		$obj = WB_ObjFactory::factory( "TestClass" );				
		
        $this->assertEquals( true, $obj->isFake() );		
	}


} // end class